package com.opensource.baowebcon.controller;

import com.opensource.common.Result.ResponseResult;
import com.opensource.datamodel.dto.IndexBaseInfoDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wzh
 * @date 2024/5/7
 * @apiNote
 */
@Api(tags = "平台信息功能")
@RestController
@RequestMapping("/index")
public class IndexPlateController extends BaseController{
    /*平台基本信息*/
    @ApiOperation(value = "平台三项基本信息",notes = "注册人数，平均的利率，总投资金额")
    @GetMapping("/getIndexBaseInfo")
    public ResponseResult getIndexBaseInfo(){

        IndexBaseInfoDto indexBaseInfoDto = indexBaseInfoService.queryPlatIndexBaseInfo();
        return ResponseResult.okResult(indexBaseInfoDto);

    }

}
